package com.itheima.Method;

public class Demo01 {
    public static void main(String[] args) {
double i = getMax1(2.0,3.0,5.0);
        System.out.println(i);
    }
//重载一个小数方法;
    public static int getMax1(int a, int b) {
        return a > b ? a : b;
    }
    public static double getMax1(double a, double b) {
        return a > b ? a : b;
    }
    public static double getMax1(double a, double b,double c) {
        return a > b ? a : b;
    }
    //名字不一样是不行的,仅仅形参名字不同是不计算重载的
}
